<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="top-nav">
	<div class="mid-nav">
		<a href="${pageContext.request.contextPath}/index" class="black-font">
			<span>Super Ordering System</span>
		</a>
		<c:if test="${user == null }">
		<div class="links">
			<a href="${pageContext.request.contextPath }/login.jsp" class="login-link">登录</a> 
			<span class="mid-span"> | </span> 
			<a href="${pageContext.request.contextPath }/register.jsp" class="register-link">注册</a>
		</div>
		</c:if>
		<c:if test="${user != null }">
		<div class="welcome">
			<span>欢迎您，${user.uname}</span>
			<a href="${pageContext.request.contextPath }/clientuser?action=logout" class="logout-link">注销</a>
		</div>
		</c:if>
	</div>
</div>